﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;
using System.Data.SqlClient;

namespace FirmaTransportowa
{
    public partial class StatisticsDriversStatisticsForm : Form
    {
        StatisticsPanelPresenter presenter;

        public StatisticsDriversStatisticsForm(StatisticsPanelPresenter presenter)
        {
            this.presenter = presenter;
            InitializeComponent();
        }

        public void showDataTable()
        {
            //statisticsGridView.Columns[0].HeaderText = "ID";
            /*statisticsGridView.Columns[1].HeaderText = "Imię";
            statisticsGridView.Columns[2].HeaderText = "Nazwisko";
            statisticsGridView.Columns[3].HeaderText = "Kursów";
            statisticsGridView.Columns[4].HeaderText = "Suma[km]";
            statisticsGridView.Columns[5].HeaderText = "Suma[h]";*/
            //statisticsGridView.Columns[6].HeaderText = "Najpopularniejsza trasa";
            //statisticsGridView.Columns[0].Width = 50;
            /*statisticsGridView.Columns[1].Width = 100;
            statisticsGridView.Columns[2].Width = 100;
            statisticsGridView.Columns[3].Width = 100;
            statisticsGridView.Columns[4].Width = 100;
            statisticsGridView.Columns[5].Width = 100;*/
            //statisticsGridView.Columns[6].Width = 100;
        }

        private void StatisticsDriversStatisticsForm_HelpButtonClicked(object sender, CancelEventArgs e)
        {
            //HelpUtils.showHelp(this, 50);
        }

        protected override bool ProcessCmdKey(ref Message msg, Keys keyData)
        {
            if (keyData == Keys.F1)
            {
                //HelpUtils.showHelp(this, 50);
                return true;
            }
            return base.ProcessCmdKey(ref msg, keyData);
        }
    }
}
